package com.cq.androidtools.mvp2

import android.os.Handler
import com.cq.androidtools.mvp.model.IUser
import com.cq.androidtools.mvp.model.UserModelImpl
import com.cq.base.mvp.BasePresenter

/**
 * 作者: CQ
 * 日期: 2021-03-23
 * 说明:
 */
class Presenter : BasePresenter<IView>(), IPresenter {
    private var user: IUser = UserModelImpl("111", "111")
    override fun clear() {
        view.onClearText()
    }


    override fun doLogin(name: String?, password: String?) {
        Handler().postDelayed(
            {view.onLoginResult(true)}, 2000)
    }

}